package com.guigu.buy.service.impl;

import com.guigu.buy.mapper.SysMenuMapper;
import com.guigu.buy.pojo.SysMenu;
import com.guigu.buy.pojo.SysMenuRole;
import com.guigu.buy.mapper.SysMenuRoleMapper;
import com.guigu.buy.service.ISysMenuRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author com.guigu
 * @since 2024-05-15
 */
@Service
public class SysMenuRoleServiceImpl extends ServiceImpl<SysMenuRoleMapper, SysMenuRole> implements ISysMenuRoleService {

    @Autowired
    private SysMenuMapper sysMenuMapper;
    public List<SysMenu> getMenuList(String loginName, String password) {
        return sysMenuMapper.getMenuList(loginName,password);
    }

    public List<SysMenu> gettwoMenuList(String loginName, String password, Integer parentId) {
        return sysMenuMapper.getsecondlevelmenu(loginName,password,parentId);
    }
}
